using UnityEngine;
using System.Collections;

public class Settings : MonoBehaviour
{
	public bool isFullscreen;
	public bool toSkipUnreadText;
	public float AutoPrintSpeed;
	public float textSpeed;

		// Use this for initialization
	void Start ()
	{
		isFullscreen= Screen.fullScreen;
		toSkipUnreadText = false;
	}

	public void ChangeViewToFullscreen()
	{
		if(isFullscreen == false)
			Screen.fullScreen = true;
	}

	public void ChangeViewToWindowed()
	{
		if(isFullscreen == true)
			Screen.fullScreen = false;
	}

	public void ToggleUnreadTextSkipping()
	{
		toSkipUnreadText = !toSkipUnreadText;
	}

	public void AutoPrintAdjustSpeed(float speed)
	{
		AutoPrintSpeed = Mathf.Lerp (1.0f, 5.0f, speed);
		Debug.Log (AutoPrintSpeed);
	}

	public void TextPrintAdjustSpeed(float speed)
	{
		textSpeed = Mathf.Lerp (40.0f, 500000.0f, speed);
		Debug.Log (textSpeed);
	}
}

